/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.isp.complient.complient.Impl;

import za.ac.cput.isp.complient.complient.CalculateSalary;

/**
 *
 * @author given
 */
public class CalculateSalaryImpl implements CalculateSalary{
    private int hoursWorked;
    private double hourlyRate;
    private double salary;
    
    @Override
    public void calculateSal() {
        salary = hoursWorked * hourlyRate;
    }

    @Override
    public void setHourlyrate(double hourlyRate) {
        this.hourlyRate = hourlyRate;
    }

    @Override
    public void setHoursWorked(int hoursWorked) {
        this.hoursWorked = hoursWorked;
    }

    @Override
    public double getSalary() {
        return salary;
    }
    
}
